﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using DevExpress.LookAndFeel;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraGrid.Localization;

namespace AmiangProject
{
    public class VietNamLang : GridLocalizer
    {
        public override string GetLocalizedString(GridStringId id)
        {
            string ret = "";
            switch (id)
            {
                case GridStringId.FindControlFindButton: return "Tìm";
                case GridStringId.FindControlClearButton: return "Xóa trắng";
                default:
                    ret = base.GetLocalizedString(id);
                    break;
            }
            return ret;
        }
        static class Program
        {
            /// <summary>
            /// The main entry point for the application.
            /// </summary>
            [STAThread]
            static void Main()
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                DevExpress.Skins.SkinManager.EnableFormSkins();
                DevExpress.UserSkins.BonusSkins.Register();
                UserLookAndFeel.Default.SetSkinStyle("Office 2013");
                VietNamLang.Active = new VietNamLang();
                Application.Run(new FrmMain());
            }
        }
    }
}
